<extend name="Base/list" />

<block name="title">SMTP服务器</block>

<block name="nav">
<li><a href="{:U(CONTROLLER_NAME.'/index')}">列表</a></li>
<li><a href="{:U(CONTROLLER_NAME.'/add')}">添加</a></li>
<li class="current"><a href="{:U(CONTROLLER_NAME.'/state')}">运行状态</a></li>
</block>

<block name="search"></block>

<block name="tip">
<table id="tip">
  <tr><th colspan="2">技巧提示</th></tr>
  <tr><td class="num">1、</td><td>以红色显示的表示当前运行中的服务器。</td></tr>
</table>
</block>

<block name="list">
<if condition="$All">
<div id="list" style="width:817px;">
  <table>
    <tr><th class="hour">时间</th><th class="smtp">SMTP服务器</th><th class="port">SMTP端口</th><th class="email">发信人邮件地址</th><th class="email">SMTP身份验证用户名</th><th class="control">操作</th></tr>
    <foreach name="All" key="key" item="value">
    <tr <if condition="$value['hour']==date('H')">class="red"</if>><td>{$value['hour']}:00 ～ {$value['hour']}:59</td><td>{$value[0]['smtp']}</td><td>{$value[0]['port']}</td><td>{$value[0]['email']}</td><td>{$value[0]['user']}</td><td><a href="{:U(CONTROLLER_NAME.'/update',array('id'=>$value[0]['id']))}">修改</a>/<a href="{:U(CONTROLLER_NAME.'/delete',array('id'=>$value[0]['id']))}">删除</a></td></tr>
    </foreach>
  </table>
</div>
<else/>
<p id="nothing">尚未添加SMTP服务器</p>
</if>
</block>